package data.pryl;

import data.Pryl;

/**
 * User: Milica Bogdanovic
 * Date: 2013-01-12
 * Time: 08:36
 */
public class Aktie extends Pryl {

    private int antal;
    private int pris;

    public Aktie(String namn, int antal, int pris) {
        super(namn);
        this.antal = antal;
        this.pris = pris;
    }

    public int getAntal() {
        return antal;
    }

    public void setAntal(int antal) {
        this.antal = antal;
    }

    public int getPris() {
        return pris;
    }

    public void setPris(int pris) {
        this.pris = pris;
    }

    public int getVarde() {
        return antal * pris;
    }
}
